package com.mxj.indexer.properties;

import lombok.Data;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yuisama
 * @date 2023/04/08 17:22
 **/
@Component    //是注册到Spring的一个bean
@ConfigurationProperties("indexer")//它的前缀是
@Data   //set get toString + @EqualsAndHashCode
//@EnableAutoConfiguration(exclude = com.mxj.indexer.command.Index.class)
public class IndexerProperties {
    //对应application.yml配置下的 indexer.doc-root-path
    private String docRootPath;
    //对应application.yml配置下的 indexer.url-prefix
     private String urlPrefix;

     private String indexRootPath;
}

